#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Core;
using Cephei.Core.Generic;
using Microsoft.FSharp.Core;
using Cephei.QL.Math;
namespace Cephei.QL.Math.Optimization
{
    /// <summary> 
	/// !  Cost function abstract class for optimization problem
	/// </summary>
    [Guid ("3A9553B1-CC7E-4f3a-8B1C-E1339AC073F4"),ComVisible(true)]
	public interface ICostFunction 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        /// <summary> 
		/// 
		/// </summary>
		 Double FiniteDifferenceEpsilon {get;}
        /// <summary> 
		/// 
		/// </summary>
		 ICostFunction Gradient(Cephei.QL.Math.IArray grad, Cephei.QL.Math.IArray x);
        /// <summary> 
		/// 
		/// </summary>
		 Double Value(Cephei.QL.Math.IArray x);
        /// <summary> 
		/// 
		/// </summary>
		 Double ValueAndGradient(Cephei.QL.Math.IArray grad, Cephei.QL.Math.IArray x);
    }   

    /// <summary> 
	/// !  Cost function abstract class for optimization problem Factory
	/// </summary>
   	[ComVisible(true)]
    public interface ICostFunction_Factory 
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
    }
}

